<?php


namespace app\store\validate;


use think\Validate;

class UserWithdrawal extends Validate
{
    protected $rule = [
        'bankId' => 'require|number',
        'money' => 'require|float|egt:1',
        'payPassword' => 'require|number|length:6',
    ];
    protected $message  =   [
        'bankId.require' => '请选择需要提现的银行卡或支付',
        'bankId.number' => '银行卡或支付宝错误',
        'money.require' => '提现金额不能为空',
        'money.float'     => '提现金额不正确',
        'money.egt'     => '提现金额不能低于1元',
        'payPassword.require'   => '交易密码必须填写',
        'payPassword.number' => '交易密码必须是纯数字',
        'payPassword.length'   => '交易密码长度是6个字符',
    ];
}